#!/usr/bin/env python
# -*- coding: utf-8 -*-
__title__ = ''
__author__ = 'HaiFeng'
__mtime__ = '20180808'

import os
from sqlalchemy import create_engine
from sqlalchemy.engine import Engine

from color_log import Logger

"""日志"""
log = Logger()

"""xml压缩包路径"""
xml_zip_path = '/mnt/future_xml/'
if 'xml_zip_path' in os.environ:
    xml_zip_path = os.environ['xml_zip_path']

csv_zip_path = './csv_zip'
if 'csv_zip_path' in os.environ:
    csv_zip_path = os.environ['csv_zip_path']
os.makedirs(csv_zip_path)


pg_conn = 'postgres://postgres:123456@pg_tick:5432/postgres'
if 'pg_conn' in os.environ:
    pg_conn = os.environ['pg_conn']

en_pg: Engine = create_engine(pg_conn)
